<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        var arr = [1, 2, 3, 4, 5, 6];

        show(...arr);

        function show(a, b, c, ...arr) {
            alert(a);
            alert(b);
            alert(c);
            alert(arr)
        }

        let arr1 = [1, 1, 2];
        let arr2 = [4, 5, 6];
        let arr3 = [...arr1, ...arr2];
        let arr4 = [...arr1];
        console.log(arr3, arr4)
    </script>
</body>

</html>